import { defineStore } from 'pinia';
import { SystemState } from '../type';
const useSystemStore = defineStore({
    id: 'system',
    state: (): SystemState => ({
        isEdit:false
    }),
    //类似于computed 可以帮我们去修饰我们的值
    getters:{
 
    },
    //类似methods 可以操作异步 和 同步 提交state
    actions: {
        changeEdit(val:boolean){
            this.isEdit = val
        }
    },
    persist: {
        enabled: true,
    }
});

export default useSystemStore;